package com.musteri;

public class Musteri {
	private String name;
	private Integer tutar;

	public Musteri(String name, Integer tutar) {
		this.name = name;
		this.tutar = tutar;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getTutar() {
		return tutar;
	}

	public void setTutar(Integer tutar) {
		this.tutar = tutar;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Musteri)
			if (((Musteri) obj).name.equals(name))
				return true;
		return false;
	}

	@Override
	public int hashCode() {
		return name.hashCode();
	}

	@Override
	public String toString() {
		return name;
	}
}
